﻿@model eShop.Web.Admin.Models.FullSendPromotionListModel

@section header{
    <title>满赠促销活动列表</title>
    <link type="text/css" rel="stylesheet" href="/administration/css/site.css" />
    <link type="text/css" rel="stylesheet" href="/administration/css/style.css" />
    <script type="text/javascript" src="/administration/scripts/jquery.js"></script>
    <script type="text/javascript" src="/administration/scripts/showlist.js"></script>
    <script type="text/javascript" src="/components/my97datepicker/WdatePicker.js"></script>
}

@section body{
    <h1 class="rightH1">
        满赠促销 &gt;&gt; 促销列表
        <div class="right">
            <a href="@Url.Action("addfullsendpromotion")" class="menuBT"><img src="/administration/images/add.jpg" />添加</a>
            <div class="clear"></div>
        </div>
        <div class="clear">
        </div>
    </h1>

    @using (Html.BeginForm())
    {

        <div class="dataListSearch">
            <table height="32">
                <tbody>
                    <tr>
                        <td width="35"><img id="searchImg" src="/administration/images/search1.gif" /></td>
                        <td>&nbsp;活动名称：</td>
                        <td width="180">@Html.TextBox("PromotionName", Model.PromotionName, new { height = "28", size = "30" })</td>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;活动时间：</td>
                        <td width="180">@Html.TextBox("PromotionTime", Model.PromotionTime, new { height = "28", size = "30", onfocus = "WdatePicker({el:'PromotionTime'})" })</td>
                        <td><input id="SearchProduct" name="SearchProduct" type="image" class="searchBut submit" src="/administration/images/s.jpg" /></td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div style="padding-left:15px;">
            <table class="tablelist">
                <thead>
                    <tr>
                        <th width="40" align="center"><input type="checkbox" id="allSelect" /></th>
                        <th width="80" align="left">活动编号</th>
                        <th align="left">活动名称</th>
                        <th width="80" align="left">活动额度</th>
                        <th width="80" align="left">补充额度</th>
                        <th width="130" align="left">开始时间</th>
                        <th width="130" align="left">结束时间</th>
                        <th width="80" align="left">活动状态</th>
                        <th width="260" align="left">管理操作</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (DataRow row in Model.FullSendPromotionList.Rows)
                    {
                        <tr>
                            <td align="center"><input type="checkbox" value="@row["pmid"]" selectItem="true" name="pmIdList" /></td>
                            <td>@row["pmid"]</td>
                            <td>@row["name"]</td>
                            <td>@row["limitmoney"]</td>
                            <td>@row["addmoney"]</td>
                            <td>@row["starttime"]</td>
                            <td>@row["endtime"]</td>
                            <td>
                                @{
                                    if (row["state"].ToString() == "0")
                                    {
                                        @:暂停
                                }
                                    else
                                    {
                                        @:启动
                                }
                                }
                            </td>
                            <td>
                                @Html.ActionLink("[主商品列表]", "fullsendproductlist", new { pmId = row["pmid"], type = 0 }, new { @class = "editOperate" })
                                @Html.ActionLink("[赠品列表]", "fullsendproductlist", new { pmId = row["pmid"], type = 1 }, new { @class = "editOperate" })
                                @Html.ActionLink("[编辑]", "editfullsendpromotion", new { pmId = row["pmid"] }, new { @class = "editOperate" })
                                @Html.ActionLink("[删除]", "delfullsendpromotion", new { pmIdList = row["pmid"] }, new { @class = "deleteOperate" })
                            </td>
                        </tr>
                                    }
                </tbody>
            </table>
        </div>
        <div class="dataListEdit">
            <a href="#" delUrl="@Url.Action("delfullsendpromotion")" class="batch batchDel">批量删除</a>
            <div class="page">
                @Html.AdminPager(Model.PageModel)
            </div>
        </div>
                                    }
}
